﻿<html>
<head>
<title>View Page</title>
<link rel=stylesheet type="text/css" href="bodystyle.css">
<style>
BODY{
background-image:url(""); 
background-color:white;
background-position:50%; 
background-repeat:no-repeat;
background-attachment:fixed;}
</STYLE>

</head>


<body>
<?php

$link   = mysql_connect("localhost", "root" ,"1123");
$result = mysql_db_query("dd","select* 
							   from staff
							   order by ID");

$main .='<table cellspacing="0" cellpadding="0" width="396" align="center" >
		 <tr><td class="bodyText">';
$main .='<table width="300" border="solid" align="left">
		 <tr><td class="bodyText">ID</td> <td class="bodyText">Name</td> <td class="bodyText">Gender</td></tr>';
while ( list($a, $b, $c)= mysql_fetch_row($result) ){
	$main .='<tr><td align="center">'.  $a  .'</td><td align="center">'.  $b  .'</td><td align="center">'.  $c  .'</td></tr>';
	//$main .='<td align="center"><a href="deleteResult.php?deleteid='. $a .'" onclick="return confirm("delete?")";>Delete</a></td></tr>';
}

$main .='</table>
         </td></tr></table>';
		  
echo $main;

mysql_close($link);
?>

</body>
</html>